package cn.mumzone.pos.api.service;

import java.util.HashMap;
import java.util.List;

import cn.mumzone.basic.net.response.BaseResponse;
import cn.mumzone.pos.model.ScheduleResultEntity;
import retrofit2.Response;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by qiuzhenhuan on 2019/7/10.
 */

public interface ScheduleService {


    @GET("egg_goods/api/v1.4/pos/personal/getScheduleInformationStatus")
    Observable<Response<BaseResponse<List<String>>>> getScheduleStatus();


    @GET("egg_goods/api/v1.4/pos/personal/getScheduleInformation")
    Observable<Response<BaseResponse<ScheduleResultEntity>>> getScheduleInfo(@Query("scheduleDay") String scheduleDay);

    @GET("egg_goods/api/v1.4/pos/personal/getSubscribeScheduleEmployee")
    Observable<Response<BaseResponse<String>>> getSubscribeScheduleEmployee(@Query("scheduleDay") String scheduleDay,
                                                                            @Query("scheduleId") String scheduleId,
                                                                            @Query("employeeId") String employeeId,
                                                                            @Query("startTime") String startTime,
                                                                            @Query("endTime") String endTime);

    @FormUrlEncoded
    @POST("egg_goods/api/v1.4/pos/personal/getScheduleUpdateEmployee")
    Observable<Response<BaseResponse<String>>> removeEmployeeFromSchedule(@FieldMap HashMap<String, String> requestMap);

    @FormUrlEncoded
    @POST("egg_goods/api/v1.4/pos/personal/getScheduleAddEmployee")
    Observable<Response<BaseResponse<String>>> addEmployeeToSchedule(@FieldMap HashMap<String, String> requestMap);

    @FormUrlEncoded
    @POST("egg_goods/api/v1.4/pos/personal/getChangeScheduleEmployee")
    Observable<Response<BaseResponse<String>>> changeShift(@FieldMap HashMap<String, String> requestMap);

}

